package com.example.demo.service.impl;

import com.example.demo.dao.CheckTheDao;
import com.example.demo.entity.response.Response;
import com.example.demo.entity.sqlbean.ProjectApplication;
import com.example.demo.service.CheckTheService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 11237
 */
@Service
public class CheckTheServiceImpl implements CheckTheService {

    @Autowired
    CheckTheDao checkTheDao;



    @Override
    public Response fnViewProjectApplications(ProjectApplication projectApplication) {
        Response response ;
        List<ProjectApplication> projectApplicationsList = checkTheDao.listViewingProjectApplications(projectApplication.getCustomerId() );
        response = Response.success(projectApplicationsList);
        return response;
        }

}
